use giveup not error
authorJoey Hess <joeyh@joeyh.name>
Tue, 16 Sep 2025 17:27:01 +0000 (13:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 16 Sep 2025 17:27:01 +0000 (13:27 -0400)
This is not debugging a git-annex bug, so no stack trace needed.

Annex/SpecialRemote/Config.hs

index 925b7e837c3d16787eaa35570d490b3ba508c4ee..c8339489ac03fb8201eb9602333d8967fb5dc0c5 100644 (file)
@@ -210,7 +210,7 @@ getRemoteConfigValue f (ParsedRemoteConfig m _) = case M.lookup f m of
                        -- Handle the case where an external special remote
                        -- tries to SETCONFIG a value belonging to git-annex,
                        -- resulting in a PassedThrough type being stored.
-                       Just _ -> error $ unwords
+                       Just _ -> giveup $ unwords
                                [ "Special remote config "
                                , fromProposedAccepted f
                                , "has been overwritten by SETCONFIG."